package com.summer.bilibili.controller.statistics;


import com.summer.bilibili.domain.article.Article;
import com.summer.bilibili.domain.base.BaseEntity;
import com.summer.bilibili.domain.comment.UserComment;
import com.summer.bilibili.domain.user.User;
import com.summer.bilibili.domain.user.UserPublish;
import com.summer.bilibili.domain.video.Video;
import com.summer.bilibili.domain.video.VideoDanmu;
import lombok.Getter;
import lombok.RequiredArgsConstructor;


/**
 * 统计类型
 */
@RequiredArgsConstructor
@Getter
public enum StatType {
    /**
     * 用户注册
     */
    USER_REGISTER( User.class, "累计用户", "icon-zhanghao"),
    /**
     * 视频投稿
     */
    VIDEO_UPLOAD( Video.class, "累计视频", "icon-shipin4"),
    /**
     * 文章投稿
     */
    // TODO 22
    ARTICLE_UPLOAD( Article.class, "累计文章", "icon-wenben"),
    /**
     * 说说发布
     */
    PUBLISH_SEND( UserPublish.class, "累计说说", "icon-pinglun2"),
    /**
     * 弹幕发送
     */
    DANMU_SEND( VideoDanmu.class, "累计弹幕", "icon-bofangqi-danmudingbukai"),
    /**
     * 评论发送
     */
    COMMENT_SEND( UserComment.class, "累计评论", "icon-pinglun2");

    private final Class<? extends BaseEntity > entityClass;
    private final String title;
    private final String icon;
}
